package com.koutao.mall.member.controller;

import com.koutao.mall.common.BusinessException;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Date:     2020/9/27 16:16
 * Description: TODO
 */
@Api(tags = "你好")
@RestController
@RequestMapping("/hello")
public class HelloWorldController {

    @ApiOperation("说你好")
    @GetMapping("/sayHi")
    public String sayHi() {
        return "Hi";
    }

    @ApiOperation("测试")
    @GetMapping("/exception")
    public String exception() {
        throw new RuntimeException("测试");
    }


}
